Optimal. Leaf size=16 \[ \frac{B \tan (c+d x)}{d}-B x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0116281, antiderivative size = 16, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 34, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.088, Rules used = {21, 3473, 8} \[ \frac{B \tan (c+d x)}{d}-B x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 3473
Rule 8
Rubi steps
\begin{align*} \int \frac{\tan ^2(c+d x) (a B+b B \tan (c+d x))}{a+b \tan (c+d x)} \, dx &=B \int \tan ^2(c+d x) \, dx\\ &=\frac{B \tan (c+d x)}{d}-B \int 1 \, dx\\ &=-B x+\frac{B \tan (c+d x)}{d}\\ \end{align*}
Mathematica [A] time = 0.0096435, size = 25, normalized size = 1.56 \[ B \left (\frac{\tan (c+d x)}{d}-\frac{\tan ^{-1}(\tan (c+d x))}{d}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.022, size = 26, normalized size = 1.6 \begin{align*}{\frac{B\tan \left ( dx+c \right ) }{d}}-{\frac{B\arctan \left ( \tan \left ( dx+c \right ) \right ) }{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.66764, size = 30, normalized size = 1.88 \begin{align*} -\frac{{\left (d x + c\right )} B - B \tan \left (d x + c\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.73815, size = 39, normalized size = 2.44 \begin{align*} -\frac{B d x - B \tan \left (d x + c\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.82752, size = 36, normalized size = 2.25 \begin{align*} \begin{cases} - B x + \frac{B \tan{\left (c + d x \right )}}{d} & \text{for}\: d \neq 0 \\\frac{x \left (B a + B b \tan{\left (c \right )}\right ) \tan ^{2}{\left (c \right )}}{a + b \tan{\left (c \right )}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.48349, size = 30, normalized size = 1.88 \begin{align*} -\frac{{\left (d x + c\right )} B - B \tan \left (d x + c\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]